package com.juc.callable.callable4;

import java.util.concurrent.Callable;

public class MyCallableInterrupted implements Callable<String>{

	/**
	 * 加Thread.currentThread().interrupted()
	 */
	@Override
	public String call() throws Exception {
		int i = 0;
		while(i==0) {
			if(Thread.currentThread().interrupted()) {
				throw new InterruptedException();
			}
			System.out.println("正在运行中");
		}
		return " 我的年龄是100 ";
	}

}
